<html>
<body>
Reports instantiations of <code>Throwable</code> or its subclasses, where the created <code>Throwable</code>
is never actually thrown.
Additionally, this inspection reports method calls that return instances of <code>Throwable</code> or its subclasses,
when the result of the method call is not thrown.
<p>Calls to methods annotated with the Error Prone's or AssertJ's <code>@CanIgnoreReturnValue</code> annotation will not be reported.</p>
<p><b>Example:</b></p>
<pre><code>
    void check(String s) {
        if (s == null) {
            new NullPointerException("s");
        }
        // ...
    }
</code></pre>
<!-- tooltip end -->
</body>
</html>